import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home/Home.vue'
import List from '@/pages/List/List.vue'
import Search from '@/pages/Search/Search.vue'
import Play from '@/pages/Play/Play.vue'

Vue.use(Router)

export default new Router({
  linkActiveClass:'activeLink',
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/list',
      name: 'list',
      component: List
    },
    {
      path: '/search',
      name: 'search',
      component: Search
    },
    {
      path: '/play/:id',
      name: 'play',
      component: Play
    },
    {
      path: '/*',
      redirect:'/home'
    },
  ]
})
